﻿:root {
  --ink-strong: #111111;
  --ink: #1f2933;
  --muted: #5f6c7b;
  --accent: #2868a7;
  --accent-dark: #1f527d;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --stroke: #dcdcdc;
  --shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

body {
  background: #ffffff;
  color: var(--ink);
}

body button {
  padding: 10px 15px;
}

.job__listings__main__title {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.8rem 1.5rem 2.5rem;
  position: relative;
  animation: slideFadeIn 0.7s ease-out forwards;
  text-align: center;
}

.job__listings__main__title h2 {
  font-size: clamp(2.1rem, 2.8vw, 3.1rem);
  margin-bottom: 0.9rem;
  margin-top: 10px;
  color: var(--ink-strong);
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.subtitle,
.subheadline {
  max-width: 520px;
  margin: 0 auto 1.6rem;
  color: var(--muted);
  font-size: 1rem;
  text-align: center;
}

.signup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.signup__cta p {
  margin: 0;
  color: var(--muted);
}

.load__more {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 700;
  transition: background-color 0.3s, transform 0.2s;
}

.load__more:hover {
  color: #ffffff;
  background: var(--accent);
  transform: translateY(-2px);
}

.filters-toggle {
  display: none;
  margin: 0.8rem auto 0;
  max-width: 80vw;
  align-self: center;
}

.menu {
  max-width: 1100px;
  margin: 0 auto 1.6rem;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.menu div {
  margin: 0;
}

.listings__sorting {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listings__sorting select {
  height: 42px;
  min-width: 200px;
  padding: 0 14px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--stroke);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.listings__sorting select:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.listings__sorting select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(40, 104, 167, 0.2);
}

.show__jobs__or__projects {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.show__jobs__or__projects p {
  margin: 0;
  font-weight: 700;
  color: var(--ink-strong);
}

.post__a__job {
  display: none;
}

.view__posted__jobs {
  display: none;
}

.is-company .post__a__job,
.is-company .view__posted__jobs {
  display: block;
}

.menu button {
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  border: 1px solid rgba(40, 104, 167, 0.3);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.menu button:hover {
  background: var(--accent);
  color: #ffffff;
}

.active__listings {
  margin: 2rem 0 3rem;
}

.job-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.4rem;
  justify-content: center;
}

.job-search__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 100%;
}

.job-search__bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  border-radius: 999px;
  background: transparent;
}

.job-search__bar select {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  padding: 0 0.6rem;
  cursor: pointer;
  color: var(--muted);
}

.job-search__bar button {
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.job-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.7s ease both;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), rgba(40, 104, 167, 0.2));
}

.job-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-strong);
  margin: 0;
}

.job-type {
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--stroke);
}

.job-type.fixed {
  background: #f2f2f2;
  color: var(--accent-dark);
}

.job-type.hourly {
  background: #f2f2f2;
  color: var(--accent-dark);
}

.job-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  background: var(--surface-soft);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--stroke);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.job-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-tag {
  background: #f2f2f2;
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--stroke);
  max-height: 30.5px
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.report-link {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
}

.report-link:hover {
  color: #1e293b;
  text-decoration: underline;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.posted-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.filters-menu {
  margin: 0 1.5rem 1.4rem;
}

@media (max-width: 900px) {
  .job__listings__main__title {
    padding-top: 3rem;
  }

  .job-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .filters-toggle {
    display: block;
  }

  .filters-menu {
    display: none;
    width: min(320px, 80vw);
    padding: 15px 0;
    margin: 0 auto 1.4rem;
  }

  .filters-menu.is-open {
    display: flex;
  }

  .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .listings__sorting,
  .show__jobs__or__projects,
  .view__applied__jobs,
  .post__a__job,
  .view__posted__jobs {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .job-search {
    flex-direction: column;
    align-items: stretch;
  }

  .job-search__bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
    padding: 0.7rem;
  }

  .job-search__bar input,
  .job-search__bar select {
    text-align: left;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    border-radius: 999px;
  }
}

@media (max-width: 560px) {
  .job__listings__main__title h2 {
    font-size: 1.8rem;
  }

  .overline {
    margin-top: 2.5rem;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .job-meta {
    grid-template-columns: 1fr;
  }

  .signup__cta {
    flex-direction: column;
  }
}

@keyframes slideFadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
